package cn.iocoder.yudao.module.alipay.controller.admin.payrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 支付记录 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class PayRecordBaseVO {

    @Schema(description = "处方销售单内码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1863")
    @NotNull(message = "处方销售单内码不能为空")
    private Long orderId;

    @Schema(description = "单据日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime payTime;

    @Schema(description = "商家自定义订单号")
    private String outTradeNo;

    @Schema(description = "支付宝交易号")
    private String tradeNo;

    @Schema(description = "支付用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16614")
    @NotNull(message = "支付用户id不能为空")
    private String buyerId;

    @Schema(description = "来源小程序id", example = "31340")
    private String appId;

    @Schema(description = "交易金额")
    private BigDecimal totalAmount;

    @Schema(description = "交易类型", example = "2")
    private String recordType;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}
